home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Now 11 / CD-ROM Now MegaDisc 11 (1995-02).iso / discs / cica / winben.exe / UNINSTAL.BA_ / UNINSTAL.BA
Text File  |  1993-10-25  |  3KB  |  122 lines

  1. @ECHO OFF
  2. GOTO SETVARS
  3.  
  4. :START
  5.  
  6. IF "%WBDRIVE%" == "" GOTO NOENV
  7. IF "%WBDIR%" == "" GOTO NOENV
  8. IF "%SYSDIR%" == "" GOTO NOENV
  9. IF "%WINDIR%" == "" GOTO NOENV
  10.  
  11. IF "%1" == "copied" GOTO OK
  12.  
  13. IF EXIST %WBDRIVE%:\~WBUNINS.BAT DEL %WBDRIVE%:\~WBUNINS.BAT
  14. COPY %WBDIR%\UNINSTAL.BAT %WBDRIVE%:\~WBUNINS.BAT > NUL
  15. %WBDRIVE%:\~WBUNINS.BAT copied
  16.  
  17. :OK 
  18.  
  19. ECHO WinBench 4.0 Uninstall
  20. ECHO.
  21. ECHO This script will attempt to delete the WinBench directory.
  22. ECHO All files installed by WinBench Setup will be deleted.
  23. ECHO If you have added other files to the WinBench directory
  24. ECHO (except for custom suites and results files) those files
  25. ECHO and the WinBench directory may not be deleted.
  26. ECHO.
  27. ECHO Press CTRL/BREAK to abort this script, or any other key to
  28. ECHO uninstall WinBench.
  29. ECHO.
  30. PAUSE
  31.  
  32. ECHO.
  33. ECHO Removing the WINBENCH.INI file ....
  34.  
  35. IF EXIST %WINDIR%\WINBENCH.INI DEL %WINDIR%\WINBENCH.INI
  36.  
  37. ECHO.
  38. ECHO Removing the WinBench directory ...
  39.  
  40. %WBDRIVE%:
  41. CD %WBDIR%
  42. IF EXIST UNINSTALL.BAT DEL UNINSTALL.BAT
  43. IF EXIST UNINSTAL.PIF DEL UNINSTALL.PIF
  44. IF EXIST WINBENCH.EXE DEL WINBENCH.EXE
  45. IF EXIST WINBENCH.HLP DEL WINBENCH.HLP
  46. IF EXIST WBQCWD.DLL DEL WBQCWD.DLL
  47. IF EXIST RUNWB.INI DEL RUNWB.INI
  48. IF EXIST WBLAB.DLL DEL WBLAB.DLL
  49. IF EXIST WINBENCH.RPT DEL WINBENCH.RPT
  50. IF EXIST README.WRI DEL README.WRI
  51. CD DOC
  52. IF EXIST WINBENCH.DOC DEL WINBENCH.DOC
  53. IF EXIST WBDOC.EXE DEL WBDOC.EXE
  54. CD ..\SUITES
  55. IF EXIST *.WBS DEL *.WBS
  56. CD ..\RESULTS
  57. IF EXIST *.XLS DEL *.XLS
  58. IF EXIST *.TXT DEL *.TXT
  59. IF EXIST *.CSV DEL *.CSV
  60. CD ..
  61. IF NOT EXIST DOC\*.* RMDIR DOC
  62. IF NOT EXIST SUITES\*.* RMDIR SUITES
  63. IF NOT EXIST RESULTS\*.* RMDIR RESULTS
  64. IF EXIST DOC\*.* GOTO FAILED
  65. IF EXIST SUITES\*.* GOTO FAILED
  66. IF EXIST RESULTS\*.* GOTO FAILED
  67. IF EXIST *.* GOTO FAILED
  68. CD ..
  69. RMDIR %WBDIR%
  70.  
  71. GOTO SUCCESS
  72.  
  73. :FAILED
  74.  
  75. ECHO.
  76. ECHO This script did not completely remove the WinBench  
  77. ECHO directory because extra non-WinBench files exist in 
  78. ECHO the directory. You should manually delete the extra
  79. ECHO files.
  80. GOTO COMMON
  81.  
  82. :SUCCESS
  83. ECHO.
  84. ECHO WinBench has been removed from your system.
  85. GOTO COMMON
  86.  
  87. :COMMON
  88. ECHO.
  89. ECHO This script did not remove the BWCC.DLL and CTL3D.DLL
  90. ECHO libraries from the Windows system directory. (You should
  91. ECHO not remove these files, as applications installed before 
  92. ECHO or after WinBench may also be using them.)
  93. ECHO.
  94. ECHO You should manually delete the WinBench icon in the 
  95. ECHO Ziff-Davis Benchmarks Program Manager group.
  96. ECHO.
  97. ECHO You should also delete this script using the command:
  98. ECHO   DEL %WBDRIVE%:\~WBUNINS.BAT
  99. ECHO.
  100. GOTO DONE
  101.  
  102. :NOENV
  103.  
  104. ECHO.
  105. ECHO You must increase the amount of available environment 
  106. ECHO variable space before you can run this program.
  107. ECHO.
  108. ECHO Edit the config.sys file so that it contains the line:
  109. ECHO.
  110. ECHO   Shell=C:\COMMAND.COM /E:512 /P
  111. ECHO.
  112. ECHO or increase the /E: value if it already exists.
  113. ECHO.
  114. ECHO If you are running UNINSTAL.BAT from within Windows,
  115. ECHO run the UNINSTAL.PIF file instead.  It may provide
  116. ECHO more environment space.
  117. ECHO.
  118. GOTO DONE
  119.  
  120. :SETVARS
  121.  
  122.